package com.ybkj.o2o.zhuanxian.common;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.math.BigDecimal;
import java.util.Date;

public class DriverOrderDetailVo {

  private String orderNum;// 订单号

  private Long orderid;// 订单id

  @JsonSerialize(using = CustomDateSerializer.class)
  private Date finishTime;// 订单完成时间

  private String finishTimeStr;// 订单完成时间

  private BigDecimal money;// 订单金额

  private BigDecimal ticheng;// 提成

  public String getOrderNum() {
    return orderNum;
  }

  public void setOrderNum(String orderNum) {
    this.orderNum = orderNum;
  }

  public Long getOrderid() {
    return orderid;
  }

  public void setOrderid(Long orderid) {
    this.orderid = orderid;
  }

  /**
   * 获取金额 .
   * @return 金额
   */
  public BigDecimal getMoney() {
    if (null == money) {
      return BigDecimal.ZERO;
    }
    return money;
  }

  public void setMoney(BigDecimal money) {
    this.money = money;
  }

  /**
   * 获取提成 .
   * @return 提成
   */
  public BigDecimal getTicheng() {
    if (null == ticheng) {
      return BigDecimal.ZERO;
    }
    return ticheng;
  }

  public void setTicheng(BigDecimal ticheng) {
    this.ticheng = ticheng;
  }

  public Date getFinishTime() {
    return finishTime;
  }

  public void setFinishTime(Date finishTime) {
    this.finishTime = finishTime;
  }

  public String getFinishTimeStr() {
    return finishTimeStr;
  }

  public void setFinishTimeStr(String finishTimeStr) {
    this.finishTimeStr = finishTimeStr;
  }


}
